package com.sddongyun.common;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;



/**
 * Created by lenovo on 2019/4/17.
 */
@Component
@Configuration
public class payConfig {
    @Value("${pay.proxurl}")
    public String proxurl;
    /**
     * 威富通交易密钥
     */
    @Value("${pay.key}")
    public  String key ;

    /**
     * 威富通商户号
     */
    @Value("${pay.mch_id}")
    public  String mch_id;

    /**
     * 威富通请求url
     */
    @Value("${pay.req_url}")
    public  String req_url;

    /**
     * 通知url
     */
    @Value("${pay.notify_url}")
    public  String notify_url;
    @Value("${cdserver.yburl}")
    public String ybUrl;
//    @Bean
//    public Client InvokeClient(){
//        JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
//        Client client = dcf.createClient(ybUrl);
//        return client;
//    }
}
